﻿ @{
    ViewBag.ControllerName = this.ViewContext.RouteData.Values["controller"].ToString().ToLower();
    //菜单类型
    var type = Request.QueryString["type"] == null ? "" : Request.QueryString["type"].ToString();
    var loginUserInfo = System.Web.HttpContext.Current.Session["LoginUseInfo"];
    var loginName = ""; 
    var module = "";
    if (loginUserInfo != null)
    {
        loginName = ((LY.Entity.S_User)loginUserInfo).UserName;
        module = QJ.CMS.Areas.Admin.Controllers.ModuleController.NewUserModuleList(((LY.Entity.S_User)loginUserInfo).ID);
    }
    else
    {
        Response.Redirect("/Admin/Login/Index");
    }
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
        <meta http-equiv="X-UA-Compatible" content="IE=10" /> 
    <title>@ViewBag.Title</title>
 
    <link href="~/Content/assets/css/app.css" rel="stylesheet" />
    <link href="~/Content/assets/css/Layout/css/common.css" rel="stylesheet" />
    <link href="~/Content/assets/css/Layout/css/style.css" rel="stylesheet" />
    <link href="~/Content/assets/css/styles.css" rel="stylesheet" />
    <script src="~/Content/assets/js/jquery-1.10.2.min.js"></script>
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/css/Layout/js/jquery.SuperSlide.js"></script>
   
    <script type="text/javascript">
        $(function () {
          $(".sideMenu").slide({
                titCell: "h3",
                targetCell: "ul",
                defaultIndex: 0,
                effect: 'slideDown',
                delayTime: '200',
                trigger: 'click',
                triggerTime: '150',
                defaultPlay: true,
                returnDefault: false,
                easing: 'easeInQuint',
                endFun: function () {
                  scrollWW();
             } 
           });
            $(window).resize(function () {
              scrollWW();
          });
      });
        function scrollWW() {
            if ($(".side").height() < $(".sideMenu").height()) {
           $(".scroll").show();
                var pos = $(".sideMenu ul:visible").position().top - 38;
                $('.sideMenu').animate({ top: -pos });
            } else {
           $(".scroll").hide();
                $('.sideMenu').animate({ top: 0 });
                n = 1;
        } 
        $("#mainframe").load(function () { 
            //alert($(document).height())
            //alert($(this).height()) 
            var mainheight = $(this).height(); // $(this).contents().find("body").height();

            //alert(mainheight);
            $(this).height(mainheight);
           
        });
      } 

        var n = 1;
        function menuScroll(num) {
            var Scroll = $('.sideMenu');
            var ScrollP = $('.sideMenu').position();
        /*alert(n);
        alert(ScrollP.top);*/
            if (num == 1) {
                Scroll.animate({ top: ScrollP.top - 38 });
                n = n + 1;
            } else {
                if (ScrollP.top > -38 && ScrollP.top != 0) { ScrollP.top = -38; }
                if (ScrollP.top < 0) {
                    Scroll.animate({ top: 38 + ScrollP.top });
                } else {
                    n = 1;
                }
                if (n > 1) {
                    n = n - 1;
                }
            }
        }
    </script>
    <style>
        .sideMenu ul li a {
            color: #1e1a1a;
        }

         .sideMenu ul li a:hover {
                font-weight: 500;
                text-decoration: underline;
        }
    </style>
</head>
    <body>
        @*@Request.UserHostAddress*@
@*         @if (Request.UserHostAddress != "116.226.96.36" && Request.UserHostAddress != "::1" && Request.UserHostAddress != "127.0.0.1")
         {
             Response.Redirect("http://www.changerbank.com/");
         }*@
        <div class="top">
            <div id="top_t">
                <div id="logo" class="fl"></div>
                <div id="photo_info" class="fr">
                    <div id="photo" class="fl">
                        <a href="#">
                            <img src="~/Content/assets/css/Layout/images/a.png" alt="" width="60" height="60"></a>
                    </div>
                    <div id="base_info" class="fr">
                        <div class="help_info">
                            <a href="1" id="hp">&nbsp;</a>
                            <a href="2" id="gy">&nbsp;</a>
                            <a id="userexit" href="#">&nbsp;</a>
                        </div>
                        <div class="info_center">
                            @loginName
                            <span id="nt">通知</span><span><a href="#" id="notice">3</a></span>
                        </div>
                    </div>
                </div>
            </div>
            <div id="side_here">
                <div id="side_here_l" class="fl"></div>
                @*  <div id="here_area" class="fl">当前位置：<span id="spanMemu"></span></div>*@
            </div>
        </div>
        @{
            var cssCurrent = Html.Raw("class=\"on\"");
            var cssNone = Html.Raw("");
        }
        <div class="side">
            <div class="sideMenu" style="margin: 0 auto" id="module">@Html.Raw(module)</div>
        </div> 
        <div class="main">
            <iframe id="mainframe" name="mainframe" frameborder="0" src=""></iframe>
        </div>
        <div> 
        </div>
        <div class="bottom">
            <div id="bottom_bg">版权所有 @@ 全局金服</div>
        </div>
        <div class="scroll">
            <a href="javascript:;" class="per" title="使用鼠标滚轴滚动侧栏" onclick="menuScroll(1);"></a>
            <a href="javascript:;" class="next" title="使用鼠标滚轴滚动侧栏" onclick="menuScroll(2);"></a>
        </div>
   
    </body>
</html>
    <script type="text/javascript">
       
        

        $(document).ready(function () {
         
            //退出
            
        });
        $("#userexit").click(function () {
            $.post("/Login/Exit", null,
             function (res) {
                 window.location.href = "/Login";
             },
             "json"
       );
        });
    </script>